package top.csmcool.musicapi.model.playlist;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 获取歌单列表歌曲
 * @Description
 * @Author shizhe
 * @Date 2025/1/27
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TracksRequest {

    // 页面
    private Integer page = 0;

    // 大小
    private Integer size = 50;

    // 歌曲id
    private String id;


    public Integer getStart() {
        return this.page * this.size;
    }

    public Integer getEnd() {
        return (this.page + 1) * this.size;
    }
}
